jade.mtp
Interface MTP
- All Known Implementing Classes:
- MessageTransportProtocol
- public interface MTP
- extends InChannel, OutChannel
Abstract interface for Message Transport Protocols
- Author:
- Giovanni Rimassa - Universita` di Parma
|
Method Summary |
java.lang.String |
addrToStr(TransportAddress ta)
Converts a TransportAddress object into a string
representation. |
java.lang.String |
getName()
Reads the name of the message transport protocol managed by this
MTP. |
TransportAddress |
strToAddr(java.lang.String rep)
Converts a string representing a valid address in this MTP to a
TransportAddress object. |
strToAddr
public TransportAddress strToAddr(java.lang.String rep)
throws MTPException
- Converts a string representing a valid address in this MTP to a
TransportAddress object.
- Parameters:
rep - The string representation of the address.- Returns:
- A
TransportAddress object, created from the
given string. - Throws:
- MTPException - If the given string is not a valid
address according to this MTP.
addrToStr
public java.lang.String addrToStr(TransportAddress ta)
throws MTPException
- Converts a
TransportAddress object into a string
representation.
- Parameters:
ta - The TransportAddress object.- Returns:
- A string representing the given address.
- Throws:
- MTPException - If the given
TransportAddress is not a valid address for this
MTP.
getName
public java.lang.String getName()
- Reads the name of the message transport protocol managed by this
MTP. The FIPA standard message transport protocols have a name
starting with
"fipa.mts.mtp".
- Returns:
- A string, that is the name of this MTP.